<div class="hinhthucs view">
<h2><?php  __('Hinhthuc');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $hinhthuc['Hinhthuc']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Tenhinhthuc'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $hinhthuc['Hinhthuc']['tenhinhthuc']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ghichu'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $hinhthuc['Hinhthuc']['ghichu']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Hinhthuc', true), array('action' => 'edit', $hinhthuc['Hinhthuc']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Hinhthuc', true), array('action' => 'delete', $hinhthuc['Hinhthuc']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $hinhthuc['Hinhthuc']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Hinhthucs', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Hinhthuc', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Ktkls', true), array('controller' => 'ktkls', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Ktkl', true), array('controller' => 'ktkls', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Ktkls');?></h3>
	<?php if (!empty($hinhthuc['Ktkl'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Cap Id'); ?></th>
		<th><?php __('Hinhthuc Id'); ?></th>
		<th><?php __('Khoa Id'); ?></th>
		<th><?php __('Loai Id'); ?></th>
		<th><?php __('Nguoinhan'); ?></th>
		<th><?php __('Lydo'); ?></th>
		<th><?php __('Ngaykt'); ?></th>
		<th><?php __('Ghichu'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($hinhthuc['Ktkl'] as $ktkl):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $ktkl['id'];?></td>
			<td><?php echo $ktkl['cap_id'];?></td>
			<td><?php echo $ktkl['hinhthuc_id'];?></td>
			<td><?php echo $ktkl['khoa_id'];?></td>
			<td><?php echo $ktkl['loai_id'];?></td>
			<td><?php echo $ktkl['nguoinhan'];?></td>
			<td><?php echo $ktkl['lydo'];?></td>
			<td><?php echo $ktkl['ngaykt'];?></td>
			<td><?php echo $ktkl['ghichu'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'ktkls', 'action' => 'view', $ktkl['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'ktkls', 'action' => 'edit', $ktkl['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'ktkls', 'action' => 'delete', $ktkl['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $ktkl['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Ktkl', true), array('controller' => 'ktkls', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
